﻿using System;

namespace LeanEngine.Business.Security
{
    /// <summary>
    /// Represents a behavior that evaluates whether the user has access to an application functionality.
    /// </summary>
    public interface IValidatorBehavior
    {
        /// <summary>
        /// Evaluates whether the user has access to the application method.
        /// </summary>
        /// <param name="userName">The user name of the user trying to access the application method.</param>
        /// <param name="password">The password of the user trying to access the application method.</param>
        /// <param name="method">The name of the application method that the user is trying to access.</param>
        bool ValidateAccess(string userName, string password, string method);
    }
}
